package com.pzb.order.domain;

import com.pzb.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 订单设置对象 od_order_setting
 * 
 * @author Mr_Wu
 * @date 2021-12-29
 */
public class OdOrderSetting extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户ID */
    private String extAppid;

    /** 最大未支付订单数 */
    private Integer maxUnpaid;

    /** 未支付订单失效时间，单位是分钟 */
    private Integer orderFailureTime;

    /** 自动收货时间，单位是天 */
    private Integer receivingDays;

    /** 允许退货时间，单位是天 */
    private Integer returnDays;

    /** 允许换货时间，单位是天 */
    private Integer exchangeDays;

    /** 退件收货人 */
    private String receiver;

    /** 退件收件人电话 */
    private String phone;

    /** 退件地址 */
    private String fullAddress;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }
    public void setMaxUnpaid(Integer maxUnpaid) 
    {
        this.maxUnpaid = maxUnpaid;
    }

    public Integer getMaxUnpaid() 
    {
        return maxUnpaid;
    }
    public void setOrderFailureTime(Integer orderFailureTime)
    {
        this.orderFailureTime = orderFailureTime;
    }

    public Integer getOrderFailureTime()
    {
        return orderFailureTime;
    }
    public void setReceivingDays(Integer receivingDays) 
    {
        this.receivingDays = receivingDays;
    }

    public Integer getReceivingDays() 
    {
        return receivingDays;
    }

    public Integer getReturnDays() {
        return returnDays;
    }

    public void setReturnDays(Integer returnDays) {
        this.returnDays = returnDays;
    }

    public Integer getExchangeDays() {
        return exchangeDays;
    }

    public void setExchangeDays(Integer exchangeDays) {
        this.exchangeDays = exchangeDays;
    }

    public void setReceiver(String receiver)
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public String getFullAddress() {
        return fullAddress;
    }

    public void setFullAddress(String fullAddress) {
        this.fullAddress = fullAddress;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("maxUnpaid", getMaxUnpaid())
            .append("orderFailureTime", getOrderFailureTime())
            .append("receivingDays", getReceivingDays())
            .append("receiver", getReceiver())
            .append("phone", getPhone())
            .append("address", getFullAddress())
            .toString();
    }
}
